<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>js基础-单击事件</title>
  <link rel="stylesheet" href="../css/common.css">
</head>

<body>
  <!-- 单击事件和页面内容修改 -->
  <button id="btnNow">获取当前时间</button>
  <span id="spNow"></span>
  <span id="spTime"></span>
  <hr>
  <!-- 获取并处理页面输入的数据 -->
  <input type="text" id="num1" placeholder="第一个数">
  +
  <input type="text" id="num2" placeholder="第二个数">
  =
  <span id="spJia">加的结果</span>
  <button id="btnCompute">开始计算</button>

  <script src="js/h03.js"></script>
  
</body>

</html>